package com.linq.cool.common.constants;

/**
 * @Author: yqlin
 * @Date: 2020/12/28 21:40
 * @Description: 缓存的key常量
 * @Version: 1.0.0
 */
public interface
CacheConstants {

    /**
     * 令牌自定义标识
     */
    String HEADER = "Authorization";

    /**
     * 令牌前缀
     */
    String TOKEN_PREFIX = "Bearer ";

    /**
     * 权限缓存前缀
     */
    String LOGIN_TOKEN_KEY = "login_tokens:";
    /**
     * 用户ID字段
     */
    String DETAILS_USER_ID = "user_id";

    /**
     * openId字段
     */
    String DETAILS_OPEN_ID = "open_id";

    /**
     * 用户名字段
     */
    String DETAILS_USERNAME = "username";

    /**
     * 授权信息字段
     */
    String AUTHORIZATION_HEADER = "authorization";
}
